﻿using homework7_encryption.Model;
namespace homework7_encryption
{
    internal class Program
    {
        /// <summary>
        /// 维吉尼亚密码加密法
        /// </summary>
        /// <param name="args"></param>
        static void Main(string[] args)
        {
            //输入明文
            Console.Write("请输入明文");
            string plain = Console.ReadLine();
            //输入密钥
            Console.Write("请输入密钥");
            string key = Console.ReadLine();
            MyEncoder encoder = new MyEncoder();
            encoder.ThePlain = plain;
            encoder.TheKey = key;
            encoder.Encode();
            //输出密文
            Console.WriteLine($"密文为{encoder.Cypher}");
        }
    }
}